/*
 * XML Type:  SignonResponseMessageSetV1
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.SignonResponseMessageSetV1
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML SignonResponseMessageSetV1(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class SignonResponseMessageSetV1Impl extends net.ofx.types.x2003.x04.impl.AbstractResponseMessageSetImpl implements net.ofx.types.x2003.x04.SignonResponseMessageSetV1
{
    
    public SignonResponseMessageSetV1Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SONRS$0 = 
        new javax.xml.namespace.QName("", "SONRS");
    private static final javax.xml.namespace.QName PINCHTRNRS$2 = 
        new javax.xml.namespace.QName("", "PINCHTRNRS");
    private static final javax.xml.namespace.QName CHALLENGETRNRS$4 = 
        new javax.xml.namespace.QName("", "CHALLENGETRNRS");
    
    
    /**
     * Gets the "SONRS" element
     */
    public net.ofx.types.x2003.x04.SignonResponse getSONRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SignonResponse target = null;
            target = (net.ofx.types.x2003.x04.SignonResponse)get_store().find_element_user(SONRS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "SONRS" element
     */
    public void setSONRS(net.ofx.types.x2003.x04.SignonResponse sonrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SignonResponse target = null;
            target = (net.ofx.types.x2003.x04.SignonResponse)get_store().find_element_user(SONRS$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.SignonResponse)get_store().add_element_user(SONRS$0);
            }
            target.set(sonrs);
        }
    }
    
    /**
     * Appends and returns a new empty "SONRS" element
     */
    public net.ofx.types.x2003.x04.SignonResponse addNewSONRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.SignonResponse target = null;
            target = (net.ofx.types.x2003.x04.SignonResponse)get_store().add_element_user(SONRS$0);
            return target;
        }
    }
    
    /**
     * Gets the "PINCHTRNRS" element
     */
    public net.ofx.types.x2003.x04.PinChangeTransactionResponse getPINCHTRNRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PinChangeTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.PinChangeTransactionResponse)get_store().find_element_user(PINCHTRNRS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PINCHTRNRS" element
     */
    public boolean isSetPINCHTRNRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PINCHTRNRS$2) != 0;
        }
    }
    
    /**
     * Sets the "PINCHTRNRS" element
     */
    public void setPINCHTRNRS(net.ofx.types.x2003.x04.PinChangeTransactionResponse pinchtrnrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PinChangeTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.PinChangeTransactionResponse)get_store().find_element_user(PINCHTRNRS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PinChangeTransactionResponse)get_store().add_element_user(PINCHTRNRS$2);
            }
            target.set(pinchtrnrs);
        }
    }
    
    /**
     * Appends and returns a new empty "PINCHTRNRS" element
     */
    public net.ofx.types.x2003.x04.PinChangeTransactionResponse addNewPINCHTRNRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PinChangeTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.PinChangeTransactionResponse)get_store().add_element_user(PINCHTRNRS$2);
            return target;
        }
    }
    
    /**
     * Unsets the "PINCHTRNRS" element
     */
    public void unsetPINCHTRNRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PINCHTRNRS$2, 0);
        }
    }
    
    /**
     * Gets the "CHALLENGETRNRS" element
     */
    public net.ofx.types.x2003.x04.ChallengeTransactionResponse getCHALLENGETRNRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ChallengeTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.ChallengeTransactionResponse)get_store().find_element_user(CHALLENGETRNRS$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CHALLENGETRNRS" element
     */
    public boolean isSetCHALLENGETRNRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CHALLENGETRNRS$4) != 0;
        }
    }
    
    /**
     * Sets the "CHALLENGETRNRS" element
     */
    public void setCHALLENGETRNRS(net.ofx.types.x2003.x04.ChallengeTransactionResponse challengetrnrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ChallengeTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.ChallengeTransactionResponse)get_store().find_element_user(CHALLENGETRNRS$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ChallengeTransactionResponse)get_store().add_element_user(CHALLENGETRNRS$4);
            }
            target.set(challengetrnrs);
        }
    }
    
    /**
     * Appends and returns a new empty "CHALLENGETRNRS" element
     */
    public net.ofx.types.x2003.x04.ChallengeTransactionResponse addNewCHALLENGETRNRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ChallengeTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.ChallengeTransactionResponse)get_store().add_element_user(CHALLENGETRNRS$4);
            return target;
        }
    }
    
    /**
     * Unsets the "CHALLENGETRNRS" element
     */
    public void unsetCHALLENGETRNRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CHALLENGETRNRS$4, 0);
        }
    }
}
